package org.sixtynine.stock;

/**
 * @author Thilanka
 * 
 *         all the common constants should go there
 * 
 */
public class Constants {

	public enum ChartType {
		BROAD_MARKET, SECTOR_DATA ,GENERAL;
	}

	public static final int ERROR = -1;
	public static final int SUCCESS = 1;
	public static final int WARNING = 2;

	public static final String COMPANY_CACHED_DATA = "COMPANY_CACHED_DATA";
	public static final String SECTOR_CACHED_DATA = "SECTOR_CACHED_DATA";

	public static final String SECTOR_ASI = "ASI";
	public static final String SECTOR_SNP = "S&P SL20";
	public static final String SECTOR_SNP_CODE = "SNP";

	/** session bind variable for results */
	public static final String SESSION_RESULTS = "RESULTS";
	
	/** this use to broad market valuation grid data*/
	public static final String BROAD_MARKET_RESULT = "BROAD_MARKET_RESULT";

	/** no of days per month needed for the calculations */
	public static final int AVG_DAYS_PER_MONTH = 20;
	public static final int AVG_DAYS_PER_WEEK = 5;
	public static final int AVG_DAYS_PER_YEAR = 240;

	public static final int AVG_MONTH_PER_YEAR = 12;

	/** session object */
	public static final String SESSION_BEAN = "SESSION_BEAN";

	public enum CommonData {
		COMPANY, SECTOR, SUB_SECTOR, USER_CATEGORY, FILTER_CATEGORY, MODULE;
	}

	public static final String DROPDOWN_ANY_OPITON = "-1";
	public static final String FILTER_DOUBLE_MAX = "MAX";
	public static final String FILTER_DOUBLE_MIN = "MIN";
	public static final String FILTER_INT_MAX = "max";
	public static final String FILTER_INT_MIN = "min";
	
	public static final String FILTER_NAGATIVE = "N";
	public static final String FILTER_POSITIVE = "P";


	public static final String DAILY_SHARE_DATA = "daily share data";
	public static final String WEEKLY_SHARE_DATA = "weekly share data";
	public static final String MONTHLY_SHARE_DATA = "monthly share data";
	public static final String ANNUAL_SHARE_DATA = "annual share data";

	public static final String DAILY_SECTOR_DATA = "daily sector data";
	public static final String WEEKLY_SECTOR_DATA = "weekly sector data";
	public static final String MONTHLY_SECTOR_DATA = "monthly sector data";
	public static final String ANNUAL_SECTOR_DATA = "annual sector data";

	public static final String QUARTER_DATA = "quarter data";
	public static final String ANNUAL_DATA = "annual data";
	
	public static final String ASPI_DATA = "aspi data";

	/** message */
	public static final String MESSAGE = "message";

	/** searc criteria */
	public static final String SEARCH_CRITERIA = "SEARCH_CRITERIA";

	/** for price performence and volatility */
	public static final int PRICE_PERF_DAYS_PER_YEAR = 366;
	public static final int PRICE_PERF_DAYS_PER_MONTH = 31;
	public static final int PRICE_PERF_DAYS_PER_WEEK = 8;
	public static final int PRICE_PERF_DAYS_SIX_MONTH = 181;
	public static final int PRICE_PERF_DAYS_THREE_MONTH = 91;
	
	/** for SMA data */	
	public static final int SMA_TEN_DAYS = 10;
	public static final int SMA_TWENTY_DAYS = 20;
	public static final int SMA_FIFTY_DAYS = 50;
	public static final int SMA_HUNDRED_DAYS = 100;
	public static final int SMA_TWO_HUNDRED_DAYS = 200;
	
	/** for volatility data */	
	public static final int VOLATILITY_ONE_WEEK = 7;
	public static final int VOLATILITY_ONE_MONTH = 30;	

	/** for beta */
	public static final int BETA_SIXTY_MONTH = 60;
	public static final int BETA_THERTYSIX_MONTH = 30;

	/** ipg status */
	public static final int IPG_PROCESSING = 1;
	public static final int IPG_ACCEPTED = 2;
	public static final int IPG_CANCELED = 3;

	public static final String IPG_CURRENCY_CODE = "144";

	// user registration
	public static final String UR_FREE_USER = "Free User";
	
	

}
